@include('Admin.public.head')
<body>
@include('Admin.public.menu')
<div class=" admin-content">
    <div class="daohang">

    </div>
    <div class="admin-biaogelist" id="app">
        <div class="listbiaoti am-cf">
            <ul class="am-icon-road on"> 添加分公司</ul>
        </div>
        <div class="fbneirong">
            <form class="am-form">
                <div class="am-form-group am-cf">
                    <div class="zuo">公司名字：</div>
                    <div class="you">
                      <input type="text" class="am-input-sm" v-model="branch.name" id="doc-ipt-email-1" placeholder="请输入公司名字" required/>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">公司电话：</div>
                    <div class="you">
                      <input type="number" class="am-input-sm" v-model="branch.phone" id="doc-ipt-email-1" placeholder="请输入公司电话" required/>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">公司邮箱：</div>
                    <div class="you">
                        <input type="email" class="am-input-sm" v-model="branch.email" placeholder="请输入公司邮箱" required/>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="am-form-group am-cf">
                        <div class="zuo">公司地址：</div>
                            <div class="you">
                                <div data-toggle="distpicker">
                                    <label class="sr-only" for="province1">Province</label>
                                    <select id="province1" v-model="branch.province" required></select>
                                    <div class="form-group">
                                        <label for="city1">City</label>
                                        <select class="form-control" id="city1" v-model="branch.city" required></select>
                                    </div>
                                    <div class="form-group">
                                        <label class="sr-only" for="district1" >District</label>

                                        <select class="form-control" id="district1" v-model="branch.district"></select>
                                    </div>
                                </div>
                            </div>
                      </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">详细地址：</div>
                    <div class="you">
                        <textarea class="" rows="2" v-model="branch.address" id="doc-ta-1" required></textarea>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">其他信息：</div>
                    <div class="you">
                        <textarea class="" rows="2" v-model="branch.note" id="doc-ta-1"></textarea>
                    </div>
                </div>
                <input type="hidden" name="id" v-model="branch.id"/>
                <div class="am-form-group am-cf">
                    <div class="you" style="margin-left: 11%;">
                        <button type="button" class="am-btn am-btn-success am-radius" v-on:click="say()">确 定</button>&nbsp;&nbsp;
                        <button type="button" class="am-btn am-btn-secondary am-radius" onclick="javascript:history.back(-1);">返 回</button>
                    </div>
                </div>
            </form>
        </div>
  <script src="{{ URL::asset('js/address/distpicker.data.js') }}"></script>
  <script src="{{ URL::asset('js/address/distpicker.js') }}"></script>
  <script src="{{ URL::asset('js/address/main.js') }}"></script>
  <script src="{{ URL::asset('js/admin/controllers/addBranch.js') }}"></script>
@include('Admin.public.foot')
